import request from '@/utiles/request.js';

export const getReiManage = async (userId) =>{
  return await request.get(`/api/reimburse/manage/${userId}`)
}

export const saveRei= async (rei) => {
  return await request.post('/api/reimburse/save',rei)
}

export const getRei = async (id) => {
  return await request.get(`/api/reimburse/edit/${id}`)
}

export const updateRei = async (rei) => {
  return await request.put('/api/reimburse/update',rei)
}

export const deleteRei = async (id) => {
  return await request.delete(`/api/reimburse/delete/${id}`)
}

export const getReiShowByApplyId = async (id) => {
  return await request.get(`/api/reimburse/show/${id}`)
}

export const submitRei = async (id) => {
  return await request.put(`/api/reimburse/submit/${id}`)
}
